package com.he.DesignPatterns.strategy.flyweight;

import java.text.MessageFormat;

/**
 * @description: TODO
 * @Author: HCL
 * @Date: 2024/9/3 15:51
 */
public class FlyweightC implements Flyweight{

    private final String inState; // 享元的内部状态（不变）

    public FlyweightC(String inState) {
        this.inState = inState;
    }

    @Override
    public void show(String state) {
        System.out.println(MessageFormat.format("原件：{1}，活动：满200减50",state));;
    }
}
